﻿#clouds {
    background: #c9dbe9;
    background: -webkit-linear-gradient(top, #c9dbe9 0, #fff 100%);
    background: -linear-gradient(top, #c9dbe9 0, #fff 100%);
    background: -moz-linear-gradient(top, #c9dbe9 0, #fff 100%);
    /*To hide the horizontal scroll appearing during the animation*/
    overflow: hidden;
	
    padding: 100px 0;
}

/*Time to finalize the cloud shape*/

.cloud {
    -moz-border-radius: 200px;
    -ms-border-radius: 200px;
    -webkit-border-radius: 200px;
    background: #fff;
    border-radius: 200px;
    height: 60px;
    position: relative;
    width: 200px;
}

.cloud:before, .cloud:after {
    -moz-border-radius: 100px;
    -moz-transform: rotate(30deg);
    -ms-border-radius: 100px;
    -ms-transform: rotate(30deg);
    -o-transform: rotate(30deg);
    -webkit-border-radius: 100px;
    -webkit-transform: rotate(30deg);
    background: #fff;
    border-radius: 100px;
    content: '';
    height: 80px;
    left: 10px;
    position: absolute;
    position: absolute;
    top: -15px;
    transform: rotate(30deg);
    width: 100px;
}

.cloud:after {
    height: 120px;
    left: auto;
    right: 15px;
    top: -55px;
    width: 120px;
}

.x1 {
    -moz-animation: moveclouds 15s linear infinite;
    -o-animation: moveclouds 15s linear infinite;
    -webkit-animation: moveclouds 15s linear infinite;
}

/*variable speed, opacity, and position of clouds for realistic effect*/

.x2 {
    -moz-animation: moveclouds 25s linear infinite;
	
    -moz-transform: scale(0.6);
    -ms-opacity: 0.6;
    -ms-transform: scale(0.6);
    -o-animation: moveclouds 25s linear infinite;
    -o-transform: scale(0.6);
    /*Speed will also be proportional to the size and opacity*/
    /*More the speed. Less the time in 's' = seconds*/
    -webkit-animation: moveclouds 25s linear infinite;
    -webkit-transform: scale(0.6);
	
    left: 200px;
    opacity: 0.6; /*opacity proportional to the size*/
    transform: scale(0.6);
}

.x3 {
    -moz-animation: moveclouds 20s linear infinite;
    -moz-transform: scale(0.8);
	
    -ms-opacity: 0.8;
    -ms-transform: scale(0.8);
    -o-animation: moveclouds 20s linear infinite;
    -o-transform: scale(0.8);
    -webkit-animation: moveclouds 20s linear infinite;
    -webkit-transform: scale(0.8);
    left: -250px;
	
    opacity: 0.8; /*opacity proportional to the size*/
    top: -200px;
    transform: scale(0.8);
}

.x4 {
    -moz-animation: moveclouds 18s linear infinite;
    -moz-transform: scale(0.75);
	
    -ms-opacity: 0.75;
    -ms-transform: scale(0.75);
    -o-animation: moveclouds 18s linear infinite;
    -o-transform: scale(0.75);
    -webkit-animation: moveclouds 18s linear infinite;
    -webkit-transform: scale(0.75);
    left: 470px;
	
    opacity: 0.75; /*opacity proportional to the size*/
    top: -250px;
    transform: scale(0.75);
}

.x5 {
    -moz-animation: moveclouds 20s linear infinite;
    -moz-transform: scale(0.8);
	
    -ms-opacity: 0.8;
    -ms-transform: scale(0.8);
    -o-animation: moveclouds 20s linear infinite;
    -o-transform: scale(0.8);
    -webkit-animation: moveclouds 20s linear infinite;
    -webkit-transform: scale(0.8);
    left: -150px;
	
    opacity: 0.8; /*opacity proportional to the size*/
    top: -150px;
    transform: scale(0.8);
}

@-webkit-keyframes moveclouds {
    0% { margin-left: 1000px; }

    100% { margin-left: -1000px; }
}

@-moz-keyframes moveclouds {
    0% { margin-left: 1000px; }

    100% { margin-left: -1000px; }
}

@-o-keyframes moveclouds {
    0% { margin-left: 1000px; }

    100% { margin-left: -1000px; }
}